import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { ArticleListComponent } from './article-list/article-list.component';
import { EditArticleComponent } from './edit-article/edit-article.component';

const routes: Routes = [
  { path: 'article-list', component: ArticleListComponent, data: { title: '文章列表' } },
  { path: 'edit-article', component: EditArticleComponent, data: { title: '编辑文章' } },
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
})
export class ArticleManagementRoutingModule {
}
